<%@ page language="java" import="java.util.*;" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<html:base />
	<title>无标题文档</title>
	</head>

	<script src="../../js/jquery.js"></script>
	<script src="../../js/CJL.0.1.min.js"></script>
	<script src="../../js/sort.js"></script>
	<script src="../../js/calendar.js"></script>
	<script src="../../js/changebgcolor.js"></script>
	<script src="../../js/routine/routine.js"></script>

	<link href="../../css/body.css" rel="stylesheet" type="text/css" />
	<link href="../../css/bus.css" rel="stylesheet" type="text/css" />
	<link href="../../css/sort.css" rel="stylesheet" type="text/css" />
	<link href="../../css/mask.css" rel="stylesheet" type="text/css" />

	<body class="bb" style="padding: 5px; text-align: center;" onload="selectAllInv();" >
		<br />
		<h2> 
			日常统计 
			<br>
		</h2>
		<hr />
		单据编号：  
		<input id="invCid" type="text" style="width: 80px;" >
		统计类别： 
		<select id="type" size="1" style="width: 100px;">
			<c:forEach var="inv" items="${invoiceTypeList}">
				<option value="${inv.invoiceTypeId}">
					${inv.invoiceTypeName}
				</option>
			</c:forEach>
		</select> 
		&nbsp;&nbsp;&nbsp;
		时段：  
		<input id="beginTime" style="width: 80px;" onfocus="calendar.setHook(this);" type="text">~<input id="endTime" style="width: 80px;" onfocus="calendar.setHook(this);" type="text">
		&nbsp;&nbsp;&nbsp;
		<input type="button" value="查找" onclick="selectInv();" >
		<table border="0" cellspacing="1" class="odTable" id="idTable"
			style="border: 0;" width="600px" onMouseOver="changeto()"  onmouseout="changeback()">
			<thead>
				<tr>
					<td colspan="9" align="left">
						单据列表
					</td>
				</tr>
				<tr align="right">
					<td width="100">
						单据编号
					</td>
					<td width="140">
						供应商/领取人
					</td>
					<td width="100">
						类别
					</td>
					<td width="80">
						采购员
					</td>
					<td width="100">
						开单日期
					</td>
					<td width="100">
						单据金额
					</td>
					<td width="100">
						存放仓库
					</td>
					<td width="80">
						操作员
					</td>
					<td width="120">
						备注
					</td>
				</tr>
			</thead>
			<tbody id="invList">
			</tbody>
		</table>
		<br/><br/>
		<table border="0" cellspacing="1" class="odTable" id="idTable" onMouseOver="changeto()"  onmouseout="changeback()"
			style="border: 0;" width="600px">
			<thead>
				<tr>
					<td colspan="9" align="left">
						单据明细
					</td>
				</tr>
				<tr align="right">
					<td width="">
						货品名称
					</td>
					<td width="">
						货品单价
					</td>
					<td width="">
						货品数量
					</td>
					<td width="">
						货品总价
					</td>
				</tr>
			</thead>
			<tbody id="invItems">
			</tbody>
		</table>
	</body>
</html>
